package com.gxa.setting.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.gxa.common.base.RespResult;
import com.gxa.setting.entity.SetCommentsLabel;
import com.gxa.setting.mapper.SetCommentsLabelMapper;
import com.gxa.setting.service.SetCommentsLabelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SetCommentsLabelServiceImpl implements SetCommentsLabelService {

    @Resource
    private SetCommentsLabelMapper setCommentsLabelMapper;

    @Override
    public RespResult queryLabel() {
        QueryWrapper<SetCommentsLabel> queryWrapper = new QueryWrapper<>();
        List<SetCommentsLabel> labelList = setCommentsLabelMapper.selectList(queryWrapper);
        return RespResult.success(labelList);
    }
}
